let sum = require('./sum');


function average(arr){
    let total = sum(arr);
    return total/arr.length;
}

exports.average = average;

function max(arr){
    return Math.max(...arr);
}

exports.max = max;